function [F,g,G]=Fun(x)
%a simple test function

F = x(1)^2+x(2)^2;
g = [2*x(1),2*x(2)]';
G =[2,0;0,2];
end